﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Preview.ascx.vb" Inherits="FrontEnd_Control_Product_Preview" %>
<%@ Register Src="../Users/InfoShop.ascx" TagName="InfoShop" TagPrefix="uc1" %>
<%@ Register Assembly="HighslideImage" Namespace="Encosia" TagPrefix="encosia" %>
<script type="text/javascript">
    function ajaxJquery() {

        $(function () {

            $('.ImgThumb').click(function () {

                var CureImgURL = $(this).attr("src").replace("90-60", "");

                $(".RaoVatBigImage a img").each(function () {
                    var ImgURL = $(this).attr("src").replace("420-300", "");

                    if (ImgURL == CureImgURL) {
                        $(this).attr("style", "display:inline");
                    }
                    else {
                        $(this).attr("style", "display:none");
                    }
                });
            });


        });
    }

</script>
<asp:UpdatePanel ID="uplProduct" runat="server">
    <ContentTemplate>

<encosia:HighslideManager ID="HighslideManager1" runat="server" OutlineType="RoundedWhite" />

<div class="second-floor clearfix">
    <div class="main-detail">
        <div class="info-box">
            <div class="pic-info">
            <div class="box_imgsalon">

            
                <div class="RaoVatBigImage">
                     <asp:Repeater ID="rptBigBanner" runat="server">
                        <ItemTemplate>
                                <encosia:HighslideImage ID="HighslideImage1" runat="server" Caption="" ImageUrl="" FullImageUrl="" />
                        </ItemTemplate>
                     </asp:Repeater>
                </div>
                <div class="Break"></div>
                <div class="RaoVatImageThumb">
                    <asp:Repeater ID="rptImageThumb" runat="server">
                        <ItemTemplate>
                            <span>
                                <asp:Image ID="imgThumb" runat="server" CssClass="ImgThumb" />
                            </span>
                        </ItemTemplate>
                    </asp:Repeater>
    
                </div>
        
            
           </div>

            </div>
            <!-- info sp -->
            <div class="info-inner">
                <div class="tip_product_views">
                    <asp:Literal ID="ltrTitle" runat="server"></asp:Literal></div>
                <div class="code_productview">
                    <span>Mã hàng:</span>
                    <asp:Literal ID="ltrCode" runat="server"></asp:Literal></div>
                <div class="divline_view">
                    &nbsp;</div>
                <div class="price_productview">
                    Giá bán: <span>
                        <asp:Literal ID="ltrPrice" runat="server"></asp:Literal>
                        VND</span><br/>
                    (Giá trên đã bao gồm thuế VAT)</div>
                <div class="pricesale_productview">
                    Giá thị trường: <span>
                        <asp:Literal ID="ltrGiaThiTruong" runat="server"></asp:Literal>
                        VND</span></div>
                <div class="status_productview">
                    Tình trạng: <span>
                        <asp:Literal ID="ltrStatus" runat="server"></asp:Literal></span></div>
                <div class="status_productview">
                    Xuất xứ: <span>
                        <asp:Literal ID="ltrXuatXu" runat="server"></asp:Literal></span></div>
                <div class="text_productview">
                    Số lượng:
                    <asp:TextBox ID="txtSoluong" CssClass="input_form" MaxLength="10" Text="1" runat="server"></asp:TextBox><span>(Còn
                        <asp:Literal ID="ltrSoLuongCon" runat="server"></asp:Literal>
                        sản phẩm) </span>
                </div>
                <div class="countsee_productview">
                    Lượt xem: <span>
                        <asp:Literal ID="ltrView" runat="server"></asp:Literal>
                        lượt</span></div>
                <div class="sumvote">
                    <a href="">Đánh giá tốt ( <span>300 </span>)</a>&nbsp; | &nbsp;<a href="">Đánh giá không
                        tốt (<span>5 </span>)</a></div>
                <div class="divline_view_2">
                    &nbsp;</div>
                <div class="textbtn_view">
                    <asp:LinkButton ID="btnBuy" CssClass="btn_buy" runat="server">Mua ngay</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnAddCart" CssClass="btn_addcart" runat="server">Thêm  vào giỏ hàng</asp:LinkButton>
                </div>

                <div class="box_contactview">
                    <div class="title_contact">Thông tin người bán</div>
                        <div class="cell_infocontact">
                            <div class="icon_infocontact">&nbsp;</div>
                                <div class="info_contact"><asp:Label ID="lblHoTen" runat="server"></asp:Label><br/>
                                Điện thoại: <asp:Literal ID="ltrDienThoai" runat="server"></asp:Literal>  <br/>
                                Địa chỉ: <asp:Literal ID="ltrDiachi" runat="server"></asp:Literal> <br/>
                                Yahoo: <asp:Literal ID="ltrYahoo" runat="server"></asp:Literal> <br/>
                                Skype: <asp:Literal ID="ltrSky" runat="server"></asp:Literal> <br/>
                                Website: <asp:Literal id="ltrWebsite" runat="server"></asp:Literal>
                            
                                                 
                    </div>
                </div>


<%--              <div class="box">
                <!-- porlet right -->
                <div class="porletright">
                    <div class="bgtitle">
                        <p class="texttitle">
                            Thông tin người bán</p>
                    </div>
                    <div class="info-shop">
                        <div class="info-shop-inner">
                            <uc1:InfoShop ID="InfoShop1" runat="server" />
                        </div>
                    </div>
                </div>



            </div>--%>

            </div>
            <!-- end info sp -->
        </div>
        <!-- descrip view sanpham -->
        <div class="detail-desc">
            <div class="bgcontent_porletinfo">
                <ol id="toc">
                    <li><a class="active" href="#page-1"><span>Mô tả</span></a></li>
                    <li><a href="#page-2"><span>Gửi bạn bè</span></a></li>
                </ol>
                <div class="contentseller" id="page-1">
                    <div class="box_seller">
                        <asp:Literal ID="ltrThongTinChung" runat="server"></asp:Literal>
                    </div>
                    <div class="clear_both">
                    </div>
                </div>
                <div class="contentseller" id="page-2">
                    <!-- box salon -->
                    <div class="box_content_viewdetail">
                        <!--Comments Facebook-->
<%--                        <div class="fb-comments" data-href="<%:Request.Url.AbsoluteUri %>" data-num-posts="5"
                            data-width="700">
                        </div>--%>
                    </div>
                    <!-- end box news -->
                    <div class="clear_both">
                    </div>
                </div>
                

            </div>
            <div class="porletright" style="margin: 0px 0px 0px 10px">
                <div class="bgtitle">
                    <p class="texttitle">
                         Sản phẩm cùng loại</p>
                </div>
                <div class="box-out">
                    <asp:Repeater ID="rptShow" runat="server">
                        <ItemTemplate>
                            <!-- item -->
                            <div class="row_itempro">
                                <div class="img-itemright">
                                    <asp:HyperLink ID="hplImg" runat="server">
                                        <asp:Image ID="img" BorderWidth="0" Width="80px" Height="80" runat="server" />
                                    </asp:HyperLink>
                                </div>
                                <div class="info-itempro">
                                    <p class="title-itemright">
                                        <asp:HyperLink ID="hplTitle" runat="server"></asp:HyperLink>
                                    </p>
                                    <p class="price-itemright">
                                        Giá :<asp:Label ID="lblPrice" runat="server" Text=""></asp:Label></p>
                                </div>
                            </div>
                            <!-- end item -->
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>

                

        </div>
        <!-- end descrip view san pham -->
    </div>
    
</div>


<div style="display: none">
    <asp:HiddenField ID="hidProductID" Value="0" runat="server" />
</div>
<!-- end row main -->
</ContentTemplate>
</asp:UpdatePanel>
